package edu.jd.movieplatform.common.dao;

import edu.jd.movieplatform.common.model.Manager.Manager;
import edu.jd.movieplatform.common.model.User.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;


public interface CommonDao {

    @Select("select user_status userId,cust_username userName,avatar_address avatar,password userPwd ,phone_number from customer where cust_username = #{userId}")
    User findUserById(String userId);

    @Select("select * from sys_manager where m_id = #{m_id}")
    Manager getManagerById(String m_id);


}
